using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class WallManager : MonoBehaviour
{

    public GameObject wallPrefab;
    public int Count=10;
    public float spacing=2.0f;
    // Start is called before the first frame update
    void Start()
    {
        CreateWall();
    }
    void CreateWall(){
        for(int i=0;i<Count;i++){
            Vector3 position=new Vector3(i*spacing,1.5f,0);
            Instantiate(wallPrefab,position,Quaternion.identity);
        }
    }
}
